package lab02.test12;

public class Test12 {
    public static void main(String[] args) {

        Circle c1 = new Circle();
        c1.radius = 1.0;
        System.out.println("半径为1.0的圆的面积：" + c1.area());
        System.out.println("半径为1.0的圆的周长：" + c1.perimeter());

        Rectangular rectangular = new Rectangular();
        rectangular.width = 1.0;
        rectangular.height = 2.0;
        System.out.println("长方形的面积：" + rectangular.area());
        System.out.println("长方形的周长：" + rectangular.perimeter());

    }
}
